package month3.day29;

public class Car {
    private String yanse;
    private String chepai;

    public Car(String yanse, String chepai) {
        this.yanse = yanse;
        this.chepai = chepai;
    }

    public String getYanse() {
        return yanse;
    }

    public void setYanse(String yanse) {
        this.yanse = yanse;
    }

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }
    public void show(){
        System.out.println("汽车颜色："+yanse+"，车牌："+chepai);
    }
    public void qidon(){
        System.out.println("三挡起步");
    }
    public void jiasu(){
        System.out.println("踩油门，换五档加速");
    }
    public void shache(){
        System.out.println("降挡刹车");
    }

}
